<script setup>
import { getToken, setToken } from '@/utils/auth'
import { copyTextToClipboard, getRandomColor } from '@/utils/index'

console.log(getRandomColor());

const copyText = () => {
  copyTextToClipboard('123')
}
const setTokenFun = () => {
  setToken(
    'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjFhM2MyZjFjLTNkMTEtNDdjZC1iOTViLWMyMjc2MGZlZDc2MCJ9.eKX3ysXKo3NXprlXkxzuWPBLQLHRq15-86TIE6W3I3ZEV5K3o6eeIwdMak--Mmg-sQwrpqDsM8hsWQSEJPUrTA'
  )
}
const getTokenFun = () => {
  console.log(getToken())
}
</script>

<template>
  <div>idnex</div>
  <el-button @click="setTokenFun">保存token</el-button>
  <el-button @click="getTokenFun">获取token</el-button>
  <el-button @click="copyText">复制文本</el-button>
</template>

<style></style>
